from django.contrib import admin

# Register your models here.
from dadmin.admin import admin_site
from dadmin.byadmin import BaseOwnerAdmin
from order.models import DmallShopingCart, DmallOrderInfo


class DmallShopingCartAdmin(BaseOwnerAdmin):
    '''Admin View for '''

    list_display = ('id', 'spu', 'sku', 'num')


admin_site.register(DmallShopingCart, DmallShopingCartAdmin)


class DmallOrderInfoAdmin(BaseOwnerAdmin):
    '''订单信息'''
    list_display = ('order_sn', 'trade_sn', 'pay_status', 'pay_method', 
        'total_amount', 'order_mark', 'freight', 'address', )

admin_site.register(DmallOrderInfo, DmallOrderInfoAdmin)